%compare results

%DATResults = [
%   'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_Seq1_19_005.xml   ';
%    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_Seq1_19_005_15.xml';
%    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_Seq1_Thesis.xml   ';
%    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_Seq1_Thesis_15.xml';
%    ];

DATResultsDetector = [
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/DetectorTest/DetectorTest_Seq1_fa010.xml    ';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/DetectorTest/DetectorTest_Seq1_fa015.xml    ';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/DetectorTest/DetectorTest_HighRes1_fa010.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/DetectorTest/DetectorTest_HighRes1_fa015.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/DetectorTest/DetectorTest_HighRes2_fa010.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/DetectorTest/DetectorTest_HighRes2_fa015.xml';
    ];

ATA_D = zeros(2,3);
ATA_ST_D = zeros(2,3);
ATA_BT_D = zeros(2,3);
SFDA_D = zeros(2,3);
SFDA_ST_D = zeros(2,3);
SFDA_BT_D = zeros(2,3);
meanStability_D = zeros(2,3);

for i=1:2
    [SFDA_D(i,1) SFDA_ST_D(i,1) SFDA_BT_D(i,1) ATA_D(i,1) ATA_ST_D(i,1) ATA_BT_D(i,1) meanStability_D(i,1)] = compareDataWithoutID('D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Groundtruth/GTSeq1.xml', DATResultsDetector(i,:) , 0, 1);
    [SFDA_D(i,2) SFDA_ST_D(i,2) SFDA_BT_D(i,2) ATA_D(i,2) ATA_ST_D(i,2) ATA_BT_D(i,2) meanStability_D(i,2)] = compareDataWithoutID('D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Groundtruth/GTHighRes1.xml', DATResultsDetector(i+2,:) , 0, 1);
    [SFDA_D(i,3) SFDA_ST_D(i,3) SFDA_BT_D(i,3) ATA_D(i,3) ATA_ST_D(i,3) ATA_BT_D(i,3) meanStability_D(i,3)] = compareDataWithoutID('D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Groundtruth/GTHighRes2.xml', DATResultsDetector(i+4,:) , 0, 1);
end

save('detectResults.mat','SFDA_D', 'SFDA_ST_D', 'SFDA_BT_D', 'ATA_D', 'ATA_ST_D', 'ATA_BT_D', 'meanStability_D');
%save('perfectResults.mat','SFDA_P', 'SFDA_ST_P', 'SFDA_BT_P', 'ATA_P', 'ATA_ST_P', 'ATA_BT_P', 'meanStability_P');
%save('finalResultsThesis.mat','SFDA', 'SFDA_ST', 'SFDA_BT', 'ATA', 'ATA_ST', 'ATA_BT', 'meanStability');